<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/sinopac-fn" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>測試用登入網頁</title>
	<link rel="stylesheet" href="${fn:url('/form/CSS/tabs.css')}">
	<script type="text/javascript" src="${fn:url('/js/jQuery/jquery-1.8.2.min.js')}"></script>
	<script type="text/javascript" src="${fn:url('/js/jQuery/jquery_DOMWindow.js')}"></script>
	<script type="text/javascript" src="${fn:url('/js/tools/formUtil.js')}"></script>
	<script type="text/javascript">
		function getMD5(){
			var userId = $("#userId").val();
			$("input[name=MD5]").val(md5(userId+"OTP"));
			var f = $('#form1');
			f.prop('action',"${fn:url('/Index/index.action')}");
			f.submit();
		}
	</script>
</head>
<body>
<div align="center">
	<form method="post" id="form1">
		<s:text name="login.title"/>
		<s:select list="userList" theme="simple" id="userId" name="UserID"/>
		<Input type="hidden" name='MD5'/>
		<button type="button" onclick="getMD5();">登入</button>
	</form>
</div>
</body>
</html>